# -*- coding: utf-8 -*-
#
# @Time    ： 2023/4/1  14:56
# @Auther  ： 徐良
# File     :  checkBoxParts.py
from PySide6.QtWidgets import QCheckBox


class CustCheckBox(QCheckBox):

    def __init__(self, parent=None):
        super(CustCheckBox, self).__init__(parent)


class CheckBox1(QCheckBox):
    def __init__(self, text):
        super(CheckBox1, self).__init__(text)

        self.setStyleSheet("""
            QCheckBox {
                font: 75 10pt "微软雅黑";
                color: rgb(37, 43, 65);
                padding: 5px;
            }

            QCheckBox::indicator {
                width: 20px;
                height: 20px;
                border: 2px solid #007bff; /* 边框颜色 */
                border-radius: 5px; /* 圆角 */
                background-color: #fff; /* 未选中时的背景颜色 */
            }

            QCheckBox::indicator:checked {
                background-color: #007bff; /* 选中时的背景颜色 */
            }

            QCheckBox::indicator:hover {
                border: 2px solid #0056b3; /* 悬停时的边框颜色 */
            }
        """)


class CheckBox2(QCheckBox):
    def __init__(self, text):
        super(CheckBox2, self).__init__(text)

        self.setStyleSheet("""
            QCheckBox {
                font: 75 14pt "微软雅黑";
                color: rgb(37, 43, 65);
                padding: 5px;
            }

            QCheckBox::indicator {
                width: 20px;
                height: 20px;
                border: 2px solid #007bff; /* 边框颜色 */
                border-radius: 5px; /* 圆角 */
                background-color: #fff; /* 未选中时的背景颜色 */
            }

            QCheckBox::indicator:checked {
                background-color: #007bff; /* 选中时的背景颜色 */
            }

            QCheckBox::indicator:hover {
                border: 2px solid #0056b3; /* 悬停时的边框颜色 */
            }
        """)




